exercise complete, had to look at solution for q 7 and 8