Ading code and images for plot4