adding notes and node struct