The Cost of Accidents: A Legal and Economic Analysis