First algo
new test
BROKEN intermediate state