finish ex3.1