Added @reg.classgeneric decorator to Reg. This allows using
Reg to replace class methods.