Section 3. The occupants of adjoining lands enclosed with fences shall, so long as both of them improve the same, maintain partition fences in equal shares between their enclosures, unless they otherwise agree.