I would like to know if the code below is a bad practice or not. If it is, is there a better way to do this? Is there a way to overload the operator [] to omit .operator[] i