added class for registers