add flask example code