membership free but all level with code

Hello.
I would like to set up a membership with sections independent the one from the other.
Not levels.
I dont want to have to charge for.
a invitation code can be perfect.
I have read the manual but i am getting confuse on how it is working.
Thanks a lot