Add answer for ex1.