added simple example with a hub and switch