Adding code and output for plot 3 and 4