Changed the graph to output the frequency of work