GAS pupm controller using moore and mealy machine