Added method to connect two elements

Change-Id: Ibcbafc7e02a3f40318800ec3d02189ec091d96b4