Moved the system to be solved into a function.
Beginning the process of doing parameter estimation.