Manuel Pellegrini admitted Bayern Munich taught Manchester City a footballing lesson during their 3-1 win at the Etihad.