Added getter for regNumb in Register class.