Example solution for COMP3702 Assignment 1