changed set_successful_attempt function

changed set_successful_attempt function and it is now set_attempt.  It
will record both successes and failures.