Add __contains__ and __getitem__ methods.