Example usage of WithTemplate