add getAttr
Merge pull request #2 from pillserg/patch-1

add getAttr