The economy of farming