Solution on ruby.
Merge pull request #3 from dmitriy-kiriyenko/dak-rb

Solution on ruby.