The OPs definition of the program they are wanting to create:
I'm about to create a certain program which allows me to keep track on my addresses and balances on it.
... is pretty much the exact definition of a "wallet".
@OP, Why are you attempting to re-invent the wheel? especially given your admitted lack of programming knowledge?

I doubt you actually need to program anything. There are many programs that do this, specifically wallets.
You can download any wallet and they all keep track of balances of your addresses.
What is the exact thing you are trying to achieve? Why not just use a wallet?
OP needs to answer this question...