task logic versus rules