first draft, adding plot4