add example with bitwise flags.