Version 2 app.py

Added Version 2 features to app.py.