edited SimpleMaster.c