lab 6 changes to app.py