fixed attr_accesible error
redid chapter 7