Correct ruby problem 2.
Add utils and unit test file.