app from rails tutorial by Michael Hartl