Initial framework built.

1. Bit of maths is required to be done.
2. What all partial derivatives to compute.
3. and how to compute them.