Lets pull `library.get(i)` and `newMessage.getLibrary.get(i)` into a variable at the top of the loop.