tries to make the loop through the articles work logically. I think it's close