Update app.cpp