Make examples more modern-compatible