Updated Pen.h and main.cpp

Fixed Pen.h and made main.cpp compatible with Pen.h Will be archived
soon.