final example 3 connected