finish ex2.4~6