I do not know why segmentation fault error on realcalc
Some changes
add real calc wrapper
Clean code