Update hw8sol.py

added text simulation