Created addNote function