Encapsulated defferent logic