Import codes of ex4.