A pencil is a tool used for writing or drawing that consists of a solid pigment core encased in a protective housing.