An introduction to law and economics