added ruby problem 2