added getter and setters for the total in the Register class