Sample app based on rails tutorial