Simple example from Strategy Pattern in Java.