Formatted code in memory.hpp