Define Register class