CSP1150 A1: finished lab 9