begin to implement the KeyfApprox class.