added sampling example