Added getMemberOf method.

Not test yet. Should work