I don't understand what is the purpose of this code.