Added method implementation for addMember