Thanks very much.
The upgrade system used a JSON file and 5 different slots: hull, engine, weapon, fighter_bay, and shielding. At different levels we have certain upgrades being available which replaces what you have in each slot.