extended app.py for 2 addition functions