Added a Java program implementing a sequencer with a state machine.