implement average consumption of gas