added basic graphing (built from scratch).