added read of all files required for query 3 and index creation.