added @sample to extendObj
Merge pull request #301 from suskind/develop

added @sample to extendObj