adding class for computing the error function