Sarah lived alone.
The dog made Sarah happy.
One day when walking, Sarah found a lost dog. Nobody claimed him, so she kept him as a pet.
One day when walking, Sarah found a lost dog.  Somebody claimed him, so she gave him as a pet.