add some note and write a new program to output the result