added master-slave example