creating getters and setters.
removeing public variables into private variables.