move methods to model class.
add documents.