Accept parameters of scope

Rewrite with 'define_method' instead of 'class_eval'