added DefineSample