Added code for doing line graphs.