there's no need to make slots an instance variable (with the @), just make it a local one.

And also, you are replacing the previous value every time you loop, perhaps you want to concatenate them.