on section 5.10- getting nilclass error