Hooked nutella in, trying to make sense of code