plot 3 working according to requirements