add closure sample