An economic model of training in an industrial setting