heterogeneous array example