Finished Exercise 6 part 4a&b