tuesday, added plotting function