Changed oop pattern
Merge pull request #1 from adarshk/master

Changed object pattern