Added implementation of isPartOf()