Agricultural and structural transformation in a developing economy