added another support class for the new DBN backprop