added bindable app bar
implemented consumption and statistics calculation coverd by unit tests