An exercise for ruby on rails (current)