The used blog written by me. Fixing the bugs in formulation.