Reduce length of pipes following virtual pipes (length field).
Refactor junction, pipe into class
