Modernize examples a bit.