reduce Ruby warnings in examples