def contains(self, element): if element > self.capacity: return false else: return Set.contains(self, element)