My final copy for the exercise