use sample as template.