2nd chapter on ruby on rails tutorial