/// <summary>
        /// Add new data to Firebase database
        /// </summary>
        public static async System.Threading.Tasks.Task AddDataToFirebase(GymRepetition newModel)
        {
            SetResponse response = await client.SetTaskAsync("gymrepetitionprediction/15", newModel);

            GymRepetition result = response.ResultAs <GymRepetition>();

            Console.WriteLine(result);
        }
        /// <summary>
        /// Predict value
        /// </summary>
        /// <param name="mlContext"></param>
        /// <param name="model"></param>
        public static void Predict(MLContext mlContext, ITransformer model, GymRepetition predictionData)
        {
            var predictionFunction = mlContext.Model.CreatePredictionEngine <GymRepetition, GymRepetitionPrediction>(model);

            var prediction = predictionFunction.Predict(predictionData);

            Console.WriteLine("Predicted data");
            Console.WriteLine($"Weight: {prediction.Weight:0.####}");
            Console.ReadLine();
        }
        /// <summary>
        /// Returns object with data inserted by user
        /// </summary>
        /// <returns></returns>
        public static GymRepetition GetUserInputData()
        {
            var result = new GymRepetition();

            Console.WriteLine("Insert exercise name: ");
            result.Exercise = Console.ReadLine();
            Console.WriteLine("Insert number of repetitions: ");
            result.Repetitions = float.Parse(Console.ReadLine());
            result.Weight      = 0;
            return(result);
        }
        /// <summary>
        /// Returns object that consist of data inserted by user
        /// </summary>
        /// <returns></returns>
        public static GymRepetition GetUserInput()
        {
            var result = new GymRepetition();

            Console.WriteLine("Exercise name: ");
            result.Exercise = Console.ReadLine();
            Console.WriteLine("Number of repetitions: ");
            result.Repetitions = Int32.Parse(Console.ReadLine());
            Console.WriteLine("Used weight: ");
            result.Weight = Int32.Parse(Console.ReadLine());
            return(result);
        }