Functions and diagrams 1 - 3