anchor.diff:      if hasBook
         inst_section = InstSection.find_by(id: request_params['instSectionId'])
   
  -      @odsa_exercise_attempts = OdsaExerciseAttempt.where("inst_book_section_exercise_id=? AND user_id=?",
  -                                  request_params['instBookSectionExerciseId'], current_user.id).select(
  +      @odsa_exercise_attempts =
  +      OdsaExerciseAttempt.where("inst_book_section_exercise_id=? AND user_id=?",
  +                                  request_params['instBookSectionExerciseId'],
  +                                  current_user.id).select(
                                     "id, user_id, question_name, request_type,
  -                                  correct, worth_credit, time_done, time_taken, earned_proficiency, points_earned,
  +                                  correct, worth_credit, time_done, time_taken,
  +                                  earned_proficiency, points_earned,
                                     pe_score, pe_steps_fixed")
  -      @odsa_exercise_progress = OdsaExerciseProgress.where("inst_book_section_exercise_id=? AND user_id=?",
  -                                  request_params['instBookSectionExerciseId'], current_user.id).select("user_id, current_score, highest_score,
  -                                  total_correct, proficient_date,first_done, last_done")
  +      @odsa_exercise_progress =
  +      OdsaExerciseProgress.where("inst_book_section_exercise_id=? AND
  +      user_id=?",
  +                                  request_params['instBookSectionExerciseId'],
  +                                  current_user.id).select("user_id,
  +                                  current_score, highest_score,
  +                                  total_correct, proficient_date,first_done,
  +                                  last_done")
       else
  -      @odsa_exercise_attempts = OdsaExerciseAttempt.where("inst_course_offering_exercise_id=? AND user_id=?",
  -                                  request_params['instCourseOfferingExerciseId'], current_user.id).select(
  +      @odsa_exercise_attempts =
  +      OdsaExerciseAttempt.where("inst_course_offering_exercise_id=? AND
  +      user_id=?",
  +                                  request_params['instCourseOfferingExerciseId']
  +                                  , current_user.id).select(
                                     "id, user_id, question_name, request_type,
  -                                  correct, worth_credit, time_done, time_taken, earned_proficiency, points_earned,
  +                                  correct, worth_credit, time_done, time_taken,
  +                                  earned_proficiency, points_earned,
                                     pe_score, pe_steps_fixed")
  -      @odsa_exercise_progress = OdsaExerciseProgress.where("inst_course_offering_exercise_id=? AND user_id=?",
  -                                  request_params['instCourseOfferingExerciseId'], current_user.id).select("user_id, current_score, highest_score,
  -                                  total_correct, proficient_date,first_done, last_done")
  +      @odsa_exercise_progress =
  +      OdsaExerciseProgress.where("inst_course_offering_exercise_id=? AND
  +      user_id=?",
  +                                  request_params['instCourseOfferingExerciseId']
  +                                  , current_user.id).select("user_id,
  +                                  current_score, highest_score,
  +                                  total_correct, proficient_date,first_done,
  +                                  last_done")
       end
       </pre>
   
  -    Once progress and attempts has been fetched, it shows the result in tabular form to student.<br><br>
  +    Once progress and attempts has been fetched, it shows the result in tabular
  +    form to student.<br><br>
       <pre>
       a = @odsa_exercise_attempts
       b = @odsa_exercise_progress
  
positive.code:       end
  
        # post the given score to the TC
        score = (request_params['toParams']['score'] != '' ? request_params['toParams']['score'] : nil)
        #res = @tp.post_replace_result!(score)
        res = @tp.post_extended_replace_result!(score: score, text: f)
      </pre>
  
negative.code:     end
    </pre>
  
    Once, student finishes an exercise, it sends a request to
    <strong>assessment</strong> endpoint from JavaScript which sends score back
    to Tool Consumer if the request was called as an assessment.
    <br><br>
    Initially it checks if the exercise is from a book or a course offering and
    then it fetches the number of attempts on the exercise and the progress of a
    student from the book (or course offering) exercise id and user id.<br><br>
    <pre>
  
    def assessment
  