made fancy 3D plots, still needs a bit of structuring and generalising