completed the array exercises