Code for Plot1