Demonstrates the recommended practice of using a scoped block for automatic resource management, preventing memory leaks.