Example code for CMSC313