class exercise for learning rails