Add function chapter.

Signed-off-by: Edward O'Callaghan <victoredwardocallaghan@gmail.com>