implemented simple flask app