Fix for ruby kata 1: The Loop