Now the script has another parameter to tell the script which type of exercise needs to process.