simple flex example