Sample to illustrate short and long weak references