Modified app.java to have a simple GUI