extract ClassMethods
use cattr_reader and set up the attribute with a default value.
Merge pull request #2 from esminc/use_classmethods

extract into ClassMethods module.