Adds __setitem__ and __getitem__