Line connecting pipes implemented
Refactor