Code for Notes tutorial app