printf to class for debug.