started working on Pencil.java