ruby homework #4