working through exercise 2-1 slowly