plot4, plot5, plot6 work

everything needs tidying and testing again.