Ruby class midterm - 2014