Comp3121 assignment solutions