Example usage for ArrayAccess interface