finite state machines part 1 lecture 7 5998681