State Factories Writing a State Factory Interaction Between State Factories and Service Providers Examples