added functionality. created app.py as a start of bringing things together"