adding rec def to class