Comp621 Assignment2