Implementing balance method

Free text, needs to test it in IDE