Make expand_memory( ) also virtual.