Assignment 7.1 and 6.1 New Updates

this will create duplicate entries if multiple nodes have a parent. anyway to check if we have seen the parent and not push if we have?