Setting up and tuning the J class