an example to test the gc