setup test with assertion
made test pass
added more test
made test pass - code is ugly - need refactoring
refactored code to use lookahead counter