// constructor public Submarine(Engine eng, NavigationPanel panel) { crew = new List <Human>(); foodSupply = new FoodSupply(); oxygenSupply = new OxygenSupply(100000.0); // maximum oxygen capacity set to 100k genericWaste = new Waste("Generic"); engine = eng; // engine and navigation panel will be prepared somewhere else navPanel = panel; equipment = new List <ITool>() { navPanel }; }