Added ex3.1 and ex3.2.