line and bar graphs implemented