Updated ex2.