Strategy pattern taken from http://en.wikipedia.org/wiki/Strategy_pattern