It compiles!
heuristic seems to work, needed refactorization to OOP