TASK 5: initial version

Inexact method kind of works.
TASK 5: Added exact solution