improved graph example