added solution to cats with hats