add custom-set exercise

Ported from xruby.