Yes, what you said are the basic needs of life, and it worth spending it there. Saving for emergency is ideal too. If your online earnings is enough you can save some too.I spend my online earnings in the basic needs which are food, clothing and shelter. These are the basic needs of human kind. If there is an extra money, I will save money to the bank so that when any bad circumstances come I will be able to help.