Make the rotected variables private and add a setter and getter for them