Template Method sample