I have trouble understanding the use of the "apply" method in the following example code. What is the apply method doing exactly, since it\'s not overwritten? It\'