template for registers classes