MOORE MACHINE