finished EX2.