Finished ex5.