breaking the ClassGraphic class into its own file and setting it up to draw itself