new function to plot contention time per access class