added a suggested answer(Ruby)