rudimentary graphinng working. next add logic to separate products