How our hats work simply explained