Final project for ruby on rails class