Pipeline class and example