completed module 3 lesson 1

some changes had to be made from the tutorial because it is assuming
rails v. 3