initial commit of plot_profit_sorted