Time manager exercise in Rails