Solution to fourth plot