A dog on a leash walks on the sidewalk while another dog follows .