Added code for first exercise.