how does the economy work