Lab1 exercise 1~4 and add some testcase