6-2 Exercise 4 for CSC 2134