Investigating inquiry pedagogy: cracking the code of learning