Adding exercise 4.2-7