Guardiola: Man City learnt a good lesson