coding part 1 if I need gas