wrote memebership model