Kiran | Added entities class and used that to abstract list of entities.