refactored area2.py script