Add registerClassInBackground method