Move newPair method to RubyCollections class