add functionality to grapher class