Feature/define accessor

for ISSUE https://github.com/ecomfe/oo/issues/9