Refactoring Binding keys logic and creating   Exception class for calc logic.