McDonald’s beats expectations thanks to its price hikes