Adding parameters to the saveExerciseAttempt() function