Added first code implementation and example (quadratic fit).