code from chapter Array and Strings