Class calculator