setter and getter methods

added setter and getter methods