public static void main(String[] args){
		Operator.takeCall();
		Customer.enterType();
		Operator.retrieveMenu();
		do {
			if (Customer.state == Customer.stateOrdering) {
                Operator.listMenuItems();
                Customer.enterItemNumber();
                Operator.askQuantity();
                Customer.enterItemQuantity();
                Order.addItem(Customer.itemNumber, Customer.itemQuantity);
                Order.updateOrderCost();
                do {
                     Operator.giveOptions();
                     Customer.enterOptionNumber();
                     switch (Customer.option ) {
                     case addMenuItem:
                    	Customer.setState(Customer.stateOrdering);
                    	break; 
                     case modifyOrder:
                        Customer.setState(Customer.stateModifying);
                        Order.modifyOrder();
                        break;
                     case finishOrder:
                        Customer.setState(Customer.stateConfirm);
                    	 break;
                     default:
                    	 System.out.println("Invalid selection");
                     }
                     
                     if (Customer.state == Customer.stateConfirm) {
                    	 Order.listOrder();
                    	 Order.updateOrderCost();
                    	 Operator.askToConfirmOrder();
                    	 Customer.confirmOrder();
                    	 if (Customer.confirmOrder == Customer.confirmedOrder) {
                    		 System.out.println("Placing order");
                    		 Operator.placeOrder();
                    	 }
                    	 else {
                    		 Customer.state = Customer.stateModifying;
                    		 Customer.option = modifyOrder;
                    	 }
                     }
                } while (Customer.option == modifyOrder);
			}
		} while (Customer.option != finishOrder);
	}