notes app base code