Three essays on the economics of education