An example of the strategy pattern written in Python.