added getters and a setter