code to create a bridge