made some modifications because redis was runnign out of value memory. Now object-oriented and also estimates time.