recode using class