compute class