Murphy and the Magical Hat