Finished ex1.