static void Main(string[] args)
        {
            // declaring an object
            Rectangle r = new Rectangle();

            // user inputs length of the rectangle
            Console.Write("Enter length of the rectangle: ");
            double lengthR = double.Parse(Console.ReadLine());

            // user inputs width of the rectangle
            Console.Write("Enter width of the rectangle: ");
            double widthR = double.Parse(Console.ReadLine());

            r.AcceptDetails(lengthR, widthR); // calling AcceptDetails() method
            r.Display();                      // calling Display() method
            Console.Read();                   // pausing program to read information
        }