Added get method for returning value at index