Midterm work for Ruby class