Memory management example.