Second Year Semester 1 exercise 2