https://rinae.dev/posts/learning-xstate/