WOrked through exercise 5.6