Finished Ported without testing
Merge branch 'master' of github.com:zaher/d_calculator