improved array examples