updated code with objects

pipeline now includes object-passing to better accommodate multiple
tests plotted to one graph