added flex array class