Using Distinct Node and Polymorphic Objects