Partially implemented the DrawingPanel class.