The Costs of Accidents: A Legal and Economic Analysis