getting class code