adding index field to Entity, which describes the order in which entities should be rendered