For once, Amazon is taking a page from Walmart’s playbook