Simplified __getitem__ function definitions