solved exercise 13 from arrays