Update app.py

Implemented Version 1 functionality