R class replaces