formatting classes as int