Work sample done in Ruby on Rails