maybe extract the 3 to a variable that says what it is ? numberOfAttempts or something ?