Remake of Analysis project using flask