implemented the pipeline pattern and tested star pattern