What need did the Mayflower Compact fill?

compiling a list of names to create a census

creating a contract between the Vir ginia Company and the Pilgrims

outlining a travel document for historical use

composing a temporary set of laws