CodePath HW2 - USING master Slave model