First be sure you pipe is two inch outer diameter. To insert you will cut a length of pipe out that you measure from the Tee itself. You will then insert the Tee glueing it with regulare PVC glue. For the wire, you will have to cut the wire that is there and add an extension to one side. Then simply tie in the extension, the other cut wire and the new wire all together using wire nuts.