changed app.py to reflect changes in the code