def entities_of_type(type)
      @entities.select { |entity| entity['type'] == type }.map { |entity| Entity.new entity }
    end
def entities_of_type(type)
      @entities.select { |entity| entity['type'] == type }.map { |entity| Entity.new entity }
    end
Entitities with specific type