added autoclosable example