add flask's flaskr code