frir.py example diagrammed