Conservation laws in gas dynamics and traffic flow