Reformat initialize_memory() and initialize_system()