Code with restructured communication