We have the method for this block of code (create record of attempt), why don't we use it ? _createAttemptRecord