add access method
Merge pull request #1 from ThomsonTang/rbClass

add access method