adding preview sample.