Localization of polynomial rings