How a supernova explodes