This is the code for plot three