fixed/solved problem 86 (ruby)