static void Main(string[] args) { // Create a vending machine and load it VendingMachine VendOMatic = new VendingMachine(); Stocker stocker = new Stocker(); VendOMatic.Load(stocker.Restock()); Customer customer = new Customer(); // Create a menu object and give it access to VendOMatic and customer MainMenu menu = new MainMenu(); menu.Receive(VendOMatic, customer); menu.Run();// Almost everything happens within the menu object }