What were three of the six purposes of the constitution as stated in the preamble?