from a Ruby on Rails class part 1