static void Main() { Rectangle r = new Rectangle(); Square s = new Square(); Octagon o = new Octagon(); Triangle t = new Triangle(); BaseMath b = new BaseMath(); WriteLine("Which shape would you like to find the value of??"); string shape = ReadLine().ToUpper(); switch (shape) { case "SQUARE": s.SquareVal(); break; case "RECTANGLE": r.RectangleVal(); break; case "OCTAGON": o.EightValue(); break; case "TRIANGLE": t.ShowEverything(); break; default: Write("We don't understand your choice "); break; } r.Menu(); //WriteLine("Exiting the program Now!!!"); //ReadKey(); }