My working code.

Please make sure we both have right code.