added longestWord. We want to keep track of the longest word through the whole sentence