Rewrite program 1.

Rewrite the program 1 using new method, and add annotations.