Up to Section 3.2: Set up file and namespaces.