add example for flags attribute