restructured the line chart example