Add Define method on scope Sample.