Exercise 9: arrays and strings