Created seperate functions to create histogram plot_AA() etc