authority. Mangold Midwest Co. v. Vill. of Richfield, 274 Minn. 347, 357, 143 N.W.2d 813, 820 (1966). Among other powers, they may enact ordinances and regulations to promote the health, safety, and welfare of residents. Minn.Stat. §§ 410.07, 412.221, subd. 32 (2010). However, the state may “limit the power of a city to act in a particular area,” for example by fully occupying a field of legislation and preempting local regulation in that field. City of Morris v. Sax Invs., Inc., 749 N.W.2d 1, 6 (Minn.2008). The legislature’s purpose in enacting the state building code was to set forth a uniform standard for the construction, reconstruction, alteration, and repair of buildings throughout the state. Minn.Stat. §§ 326B.101, .121, subd. 1(a); see also City of Morris, 749 N.W.2d at 7 (<HOLDING>). Prior to its adoption, municipalities
recognizing that code is speech holding that the uniform commercial code specifically encompassed a software licensing agreement holding that a memorandum referring to the allocation of stock ownership did not satisfy  8319 of the uniform commercial code recognizing that source code is speech but not reaching the object code issue recognizing the purpose of a uniform statewide building code