worked through first half of chatper 4