Fleshed out notesFactory