Demo code for COIT29222 2014 S2