What are the differences between tort and contract?