public override BookStatistics GetStatistics()
        {
            var result = new BookStatistics();

            foreach (var grade in grades)
            {
                result.Add(grade);
            }

            return(result);
        }
        public override BookStatistics GetStatistics()
        {
            var result = new BookStatistics();

            using (var reader = File.OpenText($"out/{Name}.txt"))
            {
                var line = reader.ReadLine();
                while (line != null)
                {
                    var number = double.Parse(line);
                    result.Add(number);
                    line = reader.ReadLine();
                }
            }
            return(result);
        }