A pipeline simulator written in scala