Master-slave system