Implement the decision tree (screenshot) and unit test.
Merge branch 'master' of https://github.com/gambaroff/ruby_sandbox