added sample xzing code