add attr accessor method