Finished first task from exam2.