What's "worked"?

> Note: master also gives incorrect answer I guess.

Please don't guess.  Please try to understand the current code first.