why is it a good idea to invest in both bonds and stocks?