Finished the exercise