static void Main(string[] args) { cat newcat = new cat("black", "miisu"); newcat.CatDetails(); Console.WriteLine("if u want change name or color Type(.)"); string userinput = Console.ReadLine(); if (userinput == ".") { Console.Write("New name:"); string newcatname = Console.ReadLine(); newcat.ChangeName(newcatname); Console.Write("New Color:"); string Newcatcolor = Console.ReadLine(); newcat.Changecolor(Newcatcolor); } else { Console.WriteLine("okey we keep name:miisu and color:black"); } newcat.CatDetails(); Console.WriteLine("cat went to sleeps"); while (newcat.Hungry != 1) { newcat.Sleeping(); } newcat.CatDetails(); Console.WriteLine("cat wakes up and says: moew"); }