add init function for note class
implement add note logic