money is earned through working or investing