//Main method static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(); ATM myATM = new ATM(); //Check connection to server myATM.Connected(); myATM.GreetingPhase(); while (true) { myATM.TransactionsPhase(); } }