refactored my notebook, added fetchNote() function.