improved statistics
started to implement the line chart