nn diagram and exercise