how does a spinning top work 1

how does a spinning top work 1