Finished Code for Advanced Day 2 (More Flask + Templating)