Redo input with overloading indexing on struct