Ruby assignment for my Programming Languages class