A sample solution to COMP3702 T2