On-the-job learning and earnings