added namespace and function to plot vectors