Modeling sample Rails application