Generate flyers logic modularized in lib folder