added more to the linegraph class