Completed excercises on array