homework for ruby