the 3rd step

the red.py script is complicated and not easy enough