Create classes for Registers and added some code