added the things that David wanted to app.py