first version of as_schema method for classes
test and docs for as_schema module