Clean code at Document