chapter 8 - somethings not quite right here, time to debug