implemented dynamic connectivity demo