Created the state charts for the application