ruby and rails class review