finished Pencil class