public static void Main(string[] args) { var io = new ConsoleIO(); var p = new Solution(); var addUser = "******"; while (addUser == "Y") { Console.WriteLine("Would you like to add a user ( Y or N )?"); addUser = Console.ReadLine().ToUpper(); if (addUser == "Y") { Db.people.Add(p.ReadPerson(io)); } } var goSearch = "Y"; while (goSearch == "Y") { Console.WriteLine("Would you like to find a particular registered user (Y or N)?"); goSearch = Console.ReadLine().ToUpper(); if (goSearch == "Y") { Console.WriteLine("Enter the name of the user you would like to find."); var search = Console.ReadLine().ToUpper(); foreach (var user in Db.people) { if (user.Name.Contains(search)) { Console.WriteLine("Result:"); p.WritePerson(io, user); } } } } var seeUsers = "Y"; while (seeUsers == "Y") { Console.WriteLine("Would you like to see registered users (Y or N)?"); seeUsers = Console.ReadLine().ToUpper(); if (seeUsers == "Y") { for (int i = 0; i < Db.people.Count; i++) { Console.WriteLine("Person " + (1 + i) + ":"); p.WritePerson(io, Db.people[i]); } } } Console.Read(); }