Refactoring of object-creation logic.
chose another lib for bignumbers