Added code for adding notes