Create FSM

Hey guys, I found this code for Evan Wallace. We can use this code as a start for our code.