Built average kpg line, and css