The extra division funtion is added to the code
merged virajpadtetest_r2_newfunction branch with r2_enhance