add array exercise to index