(Finish) exercise2