Starting even more object oriented programmation design, getResidual() mostly implemented