The conversation between human and AI assistant.
[|Human|] Edit this sentence so that it contains only one verb tense.
He had been walking for miles when he suddenly encountered a bear.
[|AI|] He walked for miles when he suddenly encountered a bear.
[|Human|] 
Edit this sentence so that it contains only one verb tense.
He had been walking for miles when he suddenly encountered a bear.