An example for testing template method and strategy