Created class for Slave in the master and now keeping a list of connected slaves