- This lab requires an XBC-compatible Fortran compiler.
- Lab 1 (Part A):
  - Set the `NM_FORTRAN` environment variable to indicate your Fortran compiler:

    Intel Fortran Compiler 11 (or later) | `NM_FORTRAN=ifort`

        setenv NM_FORTRAN ifort

  - Add the XBC option tree to your path and build it.

        nM> path add xbc
        nM> make all xbc

- Lab 1 (Part B):
  - Create a host area in your option tree (if it does not exist yet).
  - Copy `newrate.for` and `newrate.inc` into the host area of your option tree.
    - newrate.for
    - newrate.inc
  - Create a `buildopt.mm` for your option tree in the mcr area.
    - See earlier slide for details.
  - Use `UPDATE` to add `NEWRATE` to the command dictionary.
    - It should take in 5 arguments named: `IN=`, `OUT=`, `RATE=`, `SYNC=`, and `FILTER=` (no default values need be specified).

        nM> update newrate

  - Build your option tree with `NEWRATE` in it.

        nM> make all train

  - Test `NEWRATE`. Since you are not expected to know how to use `NEWRATE` a test macro has been provided:
    - Code: test_newrate.mm
    - You will need to save the file as `test_newrate.mm` in the test area of your option tree.

        nM> home test train
        nM> %test_newrate

- Lab 1 (Part C):
  - Copy the X-Midas explain file `newrate.exp` into the exp area of your option tree.
    - Code: newrate.exp
    - You will need to save the file as `newrate.exp`.
  - Fix the explain file so it matches NeXtMidas standards:
    - Fix the names of the input arguments so they match the names in the command dictionary.
    - For now, remove the control widgets section.