/// <summary>
 /// Method to perform second task of training.
 /// Generates IndexOutOfRangeException.
 /// </summary>
 private void IndexOutOfRangeTask()
 {
     try
     {
         this.Writer.WriteLine("\nTask 2: IndexoutOfRangeException");
         ExceptionTests.IndexOutOfRange();
     }
     catch (IndexOutOfRangeException e)
     {
         this.Writer.WriteLine(e.Message);
         this.Logger.LogMessage($"Class - SecondTrainingRunner | Method - IndexOutOfRange | {e.Message}");
     }
 }