add iterator pattern to notes