Adding pipe class