simplified form by adding in attr_accessor to the membership model