an example using the graphing library