COMP2041 Assignment 2