public void Do()
        {
            //int log_2 = ((x >> 23) & 255) - 128;
            //return;
            double   d     = 0x0404cb * 2 * Math.Pow(8 * (0x1b - 3), 2);
            DateTime start = DateTime.Now;

            for (int i = 0; i < 5; i++)
            {
                Block b1 = new Block(new BlockData[] { new BlockData()
                                                       {
                                                           message = "wiadomosc1 nr: " + i.ToString()
                                                       },
                                                       new BlockData()
                                                       {
                                                           message = "wiadomosc2 nr: " + i.ToString()
                                                       },
                                                       new BlockData()
                                                       {
                                                           message = "wiadomosc3 nr: " + i.ToString()
                                                       },
                                                       new BlockData()
                                                       {
                                                           message = "wiadomosc4 nr: " + i.ToString()
                                                       },
                                                       new BlockData()
                                                       {
                                                           message = "wiadomosc5 nr: " + i.ToString()
                                                       } });
                OpenLedger.Add(b1);
            }

            MemoryStream stream1           = new MemoryStream();
            DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(BlockChain));

            ser.WriteObject(stream1, OpenLedger);
            stream1.Position = 0;
            StreamReader sr = new StreamReader(stream1);

            Console.Write("JSON form of Person object: ");
            Console.WriteLine(sr.ReadToEnd());
            bool valed = OpenLedger.Validate();

            Console.WriteLine($"ledger is valid : { valed }");
            DateTime end = DateTime.Now;

            Console.WriteLine((end - start).TotalSeconds);
            Console.ReadKey();
            //return;
            var container = BootStrap.Components();

            using (var scope = container.BeginLifetimeScope())
            {
                //bindowanie
                ISimpleWorker worker = scope.Resolve <ISimpleWorker>();
                //container.Resolve<IServerLogger>();
                // robienie tasków
                Task task1 = new Task(() => worker.Do());
                //task1.Start();
                //task1.Wait();
            }
        }