added an Instance type, and changed other classes to its subclasses
Merge pull request #8 from dhruvbaldawa/refactor

Created Instance class, and made the built-in classes its subclass