class SafePencil { private static final int DEFAULT_LENGTH = 10; private Colors color; private int length; public SafePencil(Colors color, int length) { this.color = color; this.length = DEFAULT_LENGTH; if (length > 0) { this.length = length; } } public String toString() { return (this.length + ": " + this.color); } public void setColor(Colors newColor) { this.color = newColor; } public void sharpen(int remove) { if (remove < this.length) { this.length -= remove; } } }