Human capital, heterogeneous agents and technological change