Use getters and setters instead of public fields