How to invite to a class with class code