Code is not obvious. Can you explain, what is going on here?