add ch1/ex1.
ch1/ex3: add files.
ch1/ex3: refactor testcode.
ch1/ex2: modify testcode.