update constructor of switch to be cleaner and take advantage of addDevice method.
We may want to remove a device as well as add.