Added 'contains' and 'isContained' operations