Added update method for adding a note