fix required() example usage

closes #28