added support on object declration
fix typo delcration to declaration
Merge pull request #1 from eliranmoyal/object_support

added support on object declaration