add persistence, scope to class attributes
Merge pull request #29 from chrishiestand/classes-persistence

add persistence, scope to class attributes