Resolved Issue #2

Resolved ‘Cannot use object of type stdClass as array’ issue.