Completed the first part of the exercise.