Occupational choice and matching in the labor market