getter and setter methods
use Ruby's attr_accessor