Sample code for COSC1315