make 9 pass
test refactoring to make it more generic and integration test
made 3 lines algorithm with for loops, uncle Bob's style