implement resistance graph - checkpoint #6