Seperating the loading file function and the plot1 function.