Master-slave-diagram-sm