Added index to the cell constructor