Finished up draft for exercise 10