what is the function of a output shaft in a gearbox