added code to do bootstrap and plot result