Introduced setters and getters to ensure capsuled class structure.