Create public and private methods.
Algorithm of balance.
Comments.