Completed exercise2