Class-ify navigate.py