Solved up to exercise 10 from arrays