Essays on human capital formation