added an encoder to DriveTrain