Pattern matching example

Demonstrates a visitor pattern implementation in Java & Scala.