do PatternMatchingExercise