allows only number editing where class number is defined