COMP125 Assignment 2 for 2014 S2