Add code preview sample