much clear struture for main.py