getting class number from result