Simple example using Strategy design pattern.