extract codes of Main Object from pay_and_rec.py to RAYANDREC.py