Finished Exercise 5 & 5.1