Implemented cucumber tests for computing the balance with JSON