Illustrating how to solve the Riemann problem for conservation laws