Rails class, app from book