Finalization of grapher.py