finished PatternMatchingExercise