COMP3109 - Completed tutorial week4 - exercise 1