example for flex