Implemented checkBalance