fixed plot 4

now with actual functionality