Added NoteModel code