Can you explain to me how this program work?