A looping challenge - featuring cats and hats...