Update app.py

Implemented Version 2 functions