a man had a hat