Complete 'Arrays' exercise 6