added a graph and abot to find mean and median