Create hex_with_memory_management.py