Use this main for now own, run it. There is some mistakes in the logic