add sample to arrays example