Changed introduction to functions with simpler example.