CS4107 Group 12 final project slave code