public static void Start(IMatrixGenerator matrixGenerator, IWriter writer, IReader reader, IPrinter printer)
        {
            writer.WriteLine("Enter a positive number ");
            string input = reader.ReadLine();

            int matrixSize = 0;

            while (!int.TryParse(input, out matrixSize) || matrixSize < 0 || matrixSize > 100)
            {
                writer.WriteLine("You haven't entered a correct positive number");
                input = reader.ReadLine();
            }

            var generator = new MatrixGenerator();

            var matrix = matrixGenerator.Generate(matrixSize);

            printer.PrintMatrix(matrix);
        }
 // GET api/matrix/5
 public string Get(int id)
 {
     return(_generator.Generate(id));
 }