Modified app.py and hello.html to use card object