adding code to draw some graphs