register class