code of first plot