Move to Document Model from lib/class