Municipal corporations are created by