Completed third task from exam 2