ruby "grandma" program