Generate membership model