The courts also possessed restricted legislative powers, such as enacting laws providing for the laying out of highways, erecting churches, school-houses, or similar public works, observances of the Sabbath, and the manner of "setting off lands and gardens, and other matters appertaining to agricu1ture.