Three essays concerning agriculture and energy