Mouse event: create shape structure read mouse movements for data; store newly created shape on list of Shape records Keypress event: if key =q then exit loops else ignore; Ecpose event: refresh display by drawing each shape structure (4)Shut down system;