added agent4.py