COMP532 Assignment 4