Add code in the note.add class method