Register class into an instance object