https://go4codes.com/product/last-flag/