Register S3 class in namespace