Step 2. Convert require and local vars to import statements