Solved ex2.1