add RegisterClass