Made polynomial and rational classes generic