Ruby practice define helper method