Example code produced for CMSC313