Add sample for flex