inheritance for pipes 2