adding a plot for the makevector function