setting with class