rails class sample app