beautified second.py