Adding NodeObject.java, which allows for object frequency functionality