how are bonds and stocks similar