revised first exercise.