getter and setter methods implemented and working