02. Patterns, functions & algebra