profile: added example using the flags package

A strawman to iterate from.