added example of the strategy design pattern