Add solver class to carry out calculation.