rough draft State diagram as pdf