Lopez: 'I learned from Allegri'