add some tests for ex 1, ex2, and ex3
add some comments for ex2, ex3
ex2, ex3 done