static void Main(string[] args) { // calls a new nameslist then both functions within Readline to keep the window open var list = new NamesList(); list.AddPeople(); list.PrintAll(); Console.ReadLine(); }