Added template method hook example.