Training and Effort Dynamics in Apprenticeship