ruby homework for 3