added png of state transition diagram