Municipal Functions and the Law of Public Purpose