Adding implementation for getInBalance() and getOutBalance() methods