Added allInstances class method to grab all instances of an object.