It would be great, if someone with better PBP knowledge can explain, what that code actually does (how)