class prob computation