implemented the method addNote
implemented the method getNodeIds