Register now works with instances of classes