static void Main(string[] args) { SimpleRandomQuoteProvider threeQuotes = new SimpleRandomQuoteProvider(); Console.WriteLine("Enter a number of quotes to show."); Console.WriteLine(); // Quickly googled how to cast string to long, it will crash if the input isn't a number though. long N = long.Parse(Console.ReadLine()); threeQuotes.showQuotes(N); // Now time for DefaultRandomQuoteGenerator: Console.WriteLine(" Now using DefaultRandomQuoteGenerator, printing all 3 quotes:"); Console.WriteLine(); DefaultRandomQuoteGenerator someName = new DefaultRandomQuoteGenerator(theQuotes); Console.ReadLine(); }