gas_station.java: update a more elegent way