Create max_end3.py