UML State diagrams are used to represent instances. Some examples shows how to represent State Machine diagrams.