changed the titles to use an array and a text file