Maybe you can give me some hints on this. I have difficulties in understanding why this error occurs. I try to write a function which gives me back the integer of the position w