CAPSTONE: Job Board Platform
This chapter combines custom identity, employer-owned data, searchable listings, application workflows, async notifications, real-time status, rate limits, containers, and a testable permission model.
- Explain Models & auth by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain API endpoints by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain Async & background by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain Infrastructure by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Trace the chapter's complete execution path and identify where memory, I/O, concurrency, persistence, or rendering cost accumulates.
How to use this chapter
For CAPSTONE: Job Board Platform, read the explanations first and predict every example before running it. Keep a learning repository containing code, tests, command output, and the short written submission. The roadmap checklist at the end audits coverage; the chapter itself follows the capstone learning arc appropriate to this subject.
The problem this chapter solves
This chapter combines custom identity, employer-owned data, searchable listings, application workflows, async notifications, real-time status, rate limits, containers, and a testable permission model.
It removes repeated infrastructure work and gives teams conventions for evolving a database-backed product safely. DRF extends the same model to HTTP APIs.
Learning outcomes
- Explain Models & auth by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain API endpoints by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain Async & background by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Explain Infrastructure by naming its input, guarantee, internal lifecycle, important failure, and proof.
- Trace the chapter's complete execution path and identify where memory, I/O, concurrency, persistence, or rendering cost accumulates.
- Build the worked example, make one failure visible, and defend the design in a review.
Chapter progression
The order below is intentional: later sections depend on guarantees established earlier.
Runtime or system overview
A server adapts an HTTP or ASGI event into HttpRequest, middleware wraps the request in configured order, URL resolution selects a view, the view coordinates forms or serializers and lazy QuerySets, and a response unwinds through middleware. The ORM compiles QuerySet expressions into parameterized SQL; evaluation materializes model instances and may populate relation caches. In CAPSTONE: Job Board Platform, use that execution model to decide where the chapter's validation, state ownership, cleanup, and evidence belong.
Execution trace
- Django loads settings, initializes the app registry, composes middleware, and registers URL patterns before accepting the request.
- The URL resolver selects a view; authentication, permission, form, or serializer code converts untrusted request data into validated Python values.
- The view or service constructs a lazy QuerySet or enters a transaction; SQL is generated, planned by PostgreSQL, executed, and mapped back into model or projection values.
- On success the transaction commits and the response is rendered or serialized; on failure it rolls back and Django's exception path produces the documented error contract.
- Middleware unwinds around the response, while tests assert status, body, durable rows, query count, permissions, and any on-commit asynchronous handoff.
Memory and performance lens
Django model instances and serializer data are ordinary Python heap objects scoped to a request unless cached. QuerySets are lazy and hold a query plan, not rows, until evaluated. Careless list conversion, prefetching, or template iteration can materialize large result sets and create high per-worker memory pressure. For CAPSTONE: Job Board Platform, connect those costs to the concrete operations in the topic sections rather than assuming the friendly surface syntax is cheap.
When tuning CAPSTONE: Job Board Platform, measure end-to-end correctness under representative load, tail latency, saturation, duplicate/lost effects, recovery time, security denials, and cost rather than optimizing from source-code appearance.
1. Models & auth
The Models & auth unit begins with Custom AbstractUser: A custom Django user model extends or replaces the default identity schema so application-specific fields and login rules have one stable owner. Create the custom user model before the first production migration even if it initially adds no fields, and keep authentication identity separate from profile details when appropriate. The rest of this section connects that guarantee to this unit's related roadmap concepts instead of treating each term as an isolated flashcard.
The vertical slice: Models & auth
| Concept | Meaning | Engineering decision |
|---|---|---|
| Custom AbstractUser | A custom Django user model extends or replaces the default identity schema so application-specific fields and login rules have one stable owner. | Create the custom user model before the first production migration even if it initially adds no fields, and keep authentication identity separate from profile details when appropriate. |
| Company/JobListing/Application/Notification models | The job-board model set assigns durable ownership to employers, listings, candidate applications, and notification records while expressing their lifecycle and uniqueness rules. | Model status transitions with named choices and service methods, add tenant/owner filters to every access path, and record timestamps in UTC. |
| JWT auth integration | Token authentication proves possession of a signed credential; authorization separately decides whether that identity may perform an action. | Enforce object ownership and roles on the server for every path. |
Ownership across the system: Models & auth
Custom AbstractUser. Django resolves AUTH_USER_MODEL through the app registry, migrations create that table early, and relations should reference settings.AUTH_USER_MODEL rather than the concrete built-in class.
Company/JobListing/Application/Notification models. Foreign keys connect company and user ownership; constraints prevent duplicate applications and invalid status/value combinations; indexes support published-job search and user status views. Notifications store delivery intent or state, not merely transient UI text.
JWT auth integration. A server validates signature, issuer, audience, expiry, and claims. Short-lived access tokens limit exposure; rotating refresh tokens require server-side reuse detection or revocation state.
Read these as one system: Custom AbstractUser establishes the starting contract, Company/JobListing/Application/Notification models changes how that contract is executed or represented, and JWT auth integration exposes a later boundary or failure condition. A local optimization is useful only when the combined behavior stays correct and observable.
Implementation checkpoint: Models & auth
1@transaction.atomic2def custom_abstractuser(*, actor: User, data: dict[str, object]) -> Result:3 validated = validate_custom_abstractuser(data)4 result = repository.apply(actor=actor, data=validated)5 return resultThis Models & auth slice makes Custom AbstractUser observable. Read it from the boundary inward: identify the input, the validation point, the state or operation, and the value that proves the result. Before extending it toward JWT auth integration, predict its behavior for empty, invalid, repeated, and large input.
Integration risks: Models & auth
| Risk | Why it matters |
|---|---|
| Custom AbstractUser | Changing the user model after tables and foreign keys exist is a complex data migration, not a routine settings edit. |
| Company/JobListing/Application/Notification models | Nullable ownership, free-form statuses, and application-level duplicate checks allow orphaned or conflicting workflow state under concurrency. |
| JWT auth integration | Decoding is not validation, and a valid token does not grant every resource. |
Sprint submission: Models & auth
- Foundation: implement or demonstrate Custom AbstractUser with one valid input and one invalid input. Record the exact output or failure.
- Integration: combine Custom AbstractUser with Company/JobListing/Application/Notification models. Explain which component owns validation and cleanup.
- Production: design a test or experiment that exposes the failure described for JWT auth integration. State the metric, assertion, or query plan that proves the correction.
What a strong checkpoint answer contains
- A precise boundary and typed or validated input.
- One named guarantee, not only a library call.
- A negative case that fails for the intended reason.
- Cleanup, transaction, retry, or cancellation behavior where applicable.
- Evidence: assertion, command output, plan, trace, metric, or accessible UI state.
2. API endpoints
The API endpoints unit begins with Jobs CRUD (employer) + PostgreSQL FTS search: The employer job API creates and manages owned listings, while PostgreSQL full-text search ranks visible listings from normalized search documents. Keep write authorization independent from public search visibility and measure ranking/plan behavior on representative listings. The rest of this section connects that guarantee to this unit's related roadmap concepts instead of treating each term as an isolated flashcard.
The vertical slice: API endpoints
| Concept | Meaning | Engineering decision |
|---|---|---|
| Jobs CRUD (employer) + PostgreSQL FTS search | The employer job API creates and manages owned listings, while PostgreSQL full-text search ranks visible listings from normalized search documents. | Keep write authorization independent from public search visibility and measure ranking/plan behavior on representative listings. |
| Applications: apply/list/status update | The application workflow lets a candidate submit once, lets authorized parties list the correct scope, and moves status only through permitted transitions. | Use separate serializers or commands for candidate submission and employer status changes, with object-level authorization and audit timestamps. |
| cursor pagination + rate limiting (5 apps/hr) | Throttling bounds request rate; pagination bounds response and query work. Cursor pagination advances from a stable ordering key rather than a row offset. | Use deterministic unique ordering and return retry metadata. |
Ownership across the system: API endpoints
Jobs CRUD (employer) + PostgreSQL FTS search. The endpoint authenticates the employer, filters by company ownership, validates state transitions, and commits changes. Search builds a tsvector, converts the query to tsquery, applies publication and pagination filters, ranks matches, and uses an appropriate GIN index.
Applications: apply/list/status update. A transaction verifies the listing is open, creates under a unique candidate/listing constraint, and records the initial state. Later commands lock or conditionally update the expected previous status and emit notifications after commit.
cursor pagination + rate limiting (5 apps/hr). Distributed limits use atomic counters or scripts. A cursor encodes ordering position and tie-breaker; Relay exposes edges, nodes, cursors, and pageInfo.
Read these as one system: Jobs CRUD (employer) + PostgreSQL FTS search establishes the starting contract, Applications: apply/list/status update changes how that contract is executed or represented, and cursor pagination + rate limiting (5 apps/hr) exposes a later boundary or failure condition. A local optimization is useful only when the combined behavior stays correct and observable.
Implementation checkpoint: API endpoints
1@transaction.atomic2def jobs_crud_employer_postgresql_fts_search(*, actor: User, data: dict[str, object]) -> Result:3 validated = validate_jobs_crud_employer_postgresql_fts_search(data)4 result = repository.apply(actor=actor, data=validated)5 return resultThis API endpoints slice makes Jobs CRUD (employer) + PostgreSQL FTS search observable. Read it from the boundary inward: identify the input, the validation point, the state or operation, and the value that proves the result. Before extending it toward cursor pagination + rate limiting (5 apps/hr), predict its behavior for empty, invalid, repeated, and large input.
Integration risks: API endpoints
| Risk | Why it matters |
|---|---|
| Jobs CRUD (employer) + PostgreSQL FTS search | Filtering ownership only in the UI or building unbounded plain substring search can expose updates and force slow scans. |
| Applications: apply/list/status update | A read-then-insert duplicate check races; accepting arbitrary status values allows candidates to approve themselves or skip workflow steps. |
| cursor pagination + rate limiting (5 apps/hr) | Application throttles are not a substitute for edge protection, and offset pagination drifts under concurrent writes. |
Sprint submission: API endpoints
- Foundation: implement or demonstrate Jobs CRUD (employer) + PostgreSQL FTS search with one valid input and one invalid input. Record the exact output or failure.
- Integration: combine Jobs CRUD (employer) + PostgreSQL FTS search with Applications: apply/list/status update. Explain which component owns validation and cleanup.
- Production: design a test or experiment that exposes the failure described for cursor pagination + rate limiting (5 apps/hr). State the metric, assertion, or query plan that proves the correction.
What a strong checkpoint answer contains
- A precise boundary and typed or validated input.
- One named guarantee, not only a library call.
- A negative case that fails for the intended reason.
- Cleanup, transaction, retry, or cancellation behavior where applicable.
- Evidence: assertion, command output, plan, trace, metric, or accessible UI state.
3. Async & background
The Async & background unit begins with Celery: confirmation email + daily digest: Confirmation email is event-driven work after a committed action; a daily digest is scheduled batch work over a stable reporting window. Use Celery to keep provider latency and retries outside the web request while retaining delivery evidence. The rest of this section connects that guarantee to this unit's related roadmap concepts instead of treating each term as an isolated flashcard.
The vertical slice: Async & background
| Concept | Meaning | Engineering decision |
|---|---|---|
| Celery: confirmation email + daily digest | Confirmation email is event-driven work after a committed action; a daily digest is scheduled batch work over a stable reporting window. | Use Celery to keep provider latency and retries outside the web request while retaining delivery evidence. |
| Channels: real-time status updates | Django Channels publishes a derived status update to connected clients after authoritative job state changes. | Use it for low-latency projections while keeping PostgreSQL or an event log as the source of truth. |
| Beat: expire_old_listings command | A management command runs application-aware administrative work through a testable command interface. | Make reruns safe, support dry-run and batching, and emit progress. |
Ownership across the system: Async & background
Celery: confirmation email + daily digest. The transaction records an outbox row or schedules the task on commit. A worker loads current data by identifier, renders an idempotent message, and records a provider/message key. Beat emits the digest schedule, but a distributed lock or unique run key prevents duplicate logical sends.
Channels: real-time status updates. An ASGI consumer authenticates the socket and joins an authorized group. A post-commit producer sends a small event through the channel layer; consumers serialize it to WebSocket frames. Reconnection requires a snapshot or replay source because groups are not durable history.
Beat: expire_old_listings command. Django discovers command modules in installed apps and initializes the same settings and app registry used by the server.
Read these as one system: Celery: confirmation email + daily digest establishes the starting contract, Channels: real-time status updates changes how that contract is executed or represented, and Beat: expire_old_listings command exposes a later boundary or failure condition. A local optimization is useful only when the combined behavior stays correct and observable.
Implementation checkpoint: Async & background
1@transaction.atomic2def celery_confirmation_email_daily_digest(*, actor: User, data: dict[str, object]) -> Result:3 validated = validate_celery_confirmation_email_daily_digest(data)4 result = repository.apply(actor=actor, data=validated)5 return resultThis Async & background slice makes Celery: confirmation email + daily digest observable. Read it from the boundary inward: identify the input, the validation point, the state or operation, and the value that proves the result. Before extending it toward Beat: expire_old_listings command, predict its behavior for empty, invalid, repeated, and large input.
Integration risks: Async & background
| Risk | Why it matters |
|---|---|
| Celery: confirmation email + daily digest | Calling the task before commit can send a confirmation for rolled-back data; retrying without a stable message key can send duplicates. |
| Channels: real-time status updates | Using user-supplied group names or sending before commit can leak data or display a state that never became durable. |
| Beat: expire_old_listings command | Do not load an unbounded table into memory or make partial failure impossible to resume. |
Sprint submission: Async & background
- Foundation: implement or demonstrate Celery: confirmation email + daily digest with one valid input and one invalid input. Record the exact output or failure.
- Integration: combine Celery: confirmation email + daily digest with Channels: real-time status updates. Explain which component owns validation and cleanup.
- Production: design a test or experiment that exposes the failure described for Beat: expire_old_listings command. State the metric, assertion, or query plan that proves the correction.
What a strong checkpoint answer contains
- A precise boundary and typed or validated input.
- One named guarantee, not only a library call.
- A negative case that fails for the intended reason.
- Cleanup, transaction, retry, or cancellation behavior where applicable.
- Evidence: assertion, command output, plan, trace, metric, or accessible UI state.
4. Infrastructure
The Infrastructure unit begins with Docker Compose: django/postgres/redis/celery/beat: Compose declares a local multi-container application, its networks, volumes, configuration, and health dependencies. Keep production-like topology but separate development overrides and secrets. The rest of this section connects that guarantee to this unit's related roadmap concepts instead of treating each term as an isolated flashcard.
The vertical slice: Infrastructure
| Concept | Meaning | Engineering decision |
|---|---|---|
| Docker Compose: django/postgres/redis/celery/beat | Compose declares a local multi-container application, its networks, volumes, configuration, and health dependencies. | Keep production-like topology but separate development overrides and secrets. |
| 40 test cases | The forty-test target is a risk budget spanning model invariants, permissions, API contracts, search, background delivery, WebSockets, failures, and infrastructure—not forty variants of one happy path. | Create a test matrix by risk and source boundary, give every case a meaningful assertion, and report important untested risks alongside coverage. |
Ownership across the system: Infrastructure
Docker Compose: django/postgres/redis/celery/beat. Service names become DNS records on a Compose network. Named volumes outlive containers; bind mounts expose host paths. Health-aware dependency ordering does not guarantee application migrations are complete.
40 test cases. Fast unit tests protect domain transitions; database/API tests retain Django and PostgreSQL behavior; Celery/Channels integration tests use real adapters selectively; end-to-end cases prove a few critical user journeys.
Read these as one system: Docker Compose: django/postgres/redis/celery/beat establishes the starting contract, 40 test cases changes how that contract is executed or represented, and 40 test cases exposes a later boundary or failure condition. A local optimization is useful only when the combined behavior stays correct and observable.
Implementation checkpoint: Infrastructure
1@transaction.atomic2def docker_compose_django_postgres_redis_celer(*, actor: User, data: dict[str, object]) -> Result:3 validated = validate_docker_compose_django_postgres_redis_celer(data)4 result = repository.apply(actor=actor, data=validated)5 return resultThis Infrastructure slice makes Docker Compose: django/postgres/redis/celery/beat observable. Read it from the boundary inward: identify the input, the validation point, the state or operation, and the value that proves the result. Before extending it toward 40 test cases, predict its behavior for empty, invalid, repeated, and large input.
Integration risks: Infrastructure
| Risk | Why it matters |
|---|---|
| Docker Compose: django/postgres/redis/celery/beat | depends_on is not a distributed readiness protocol. |
| 40 test cases | Chasing a case count or line percentage with shallow assertions creates confidence without protecting product behavior. |
Sprint submission: Infrastructure
- Foundation: implement or demonstrate Docker Compose: django/postgres/redis/celery/beat with one valid input and one invalid input. Record the exact output or failure.
- Integration: combine Docker Compose: django/postgres/redis/celery/beat with 40 test cases. Explain which component owns validation and cleanup.
- Production: design a test or experiment that exposes the failure described for 40 test cases. State the metric, assertion, or query plan that proves the correction.
What a strong checkpoint answer contains
- A precise boundary and typed or validated input.
- One named guarantee, not only a library call.
- A negative case that fails for the intended reason.
- Cleanup, transaction, retry, or cancellation behavior where applicable.
- Evidence: assertion, command output, plan, trace, metric, or accessible UI state.
Complete worked example
This example integrates the chapter rather than demonstrating an isolated method.
1class Application(models.Model):2 class Status(models.TextChoices):3 SUBMITTED = "submitted"4 REVIEW = "review"5 ACCEPTED = "accepted"6 REJECTED = "rejected"7
8 candidate = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)9 job = models.ForeignKey(JobListing, on_delete=models.CASCADE)10 status = models.CharField(max_length=16, choices=Status, default=Status.SUBMITTED)11
12 class Meta:13 constraints = [14 models.UniqueConstraint(fields=("candidate", "job"), name="one_application_per_job")15 ]16
17@transaction.atomic18def apply(candidate, job):19 return Application.objects.get_or_create(candidate=candidate, job=job)Expected result
1Concurrent duplicate submissions converge on one candidate/job application row.Line-by-line reading
| Line | Code | Explanation |
|---|---|---|
| 1 | class Application(models.Model): | Creates a class namespace and binds the resulting class object to this name. |
| 2 | class Status(models.TextChoices): | Creates a class namespace and binds the resulting class object to this name. |
| 3 | SUBMITTED = "submitted" | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 4 | REVIEW = "review" | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 5 | ACCEPTED = "accepted" | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 6 | REJECTED = "rejected" | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 8 | candidate = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 9 | job = models.ForeignKey(JobListing, on_delete=models.CASCADE) | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 10 | status = models.CharField(max_length=16, choices=Status, default=Status.SUBMITTED) | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 12 | class Meta: | Creates a class namespace and binds the resulting class object to this name. |
| 13 | constraints = [ | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 14 | models.UniqueConstraint(fields=("candidate", "job"), name="one_application_per_job") | Computes or receives a value and binds it for the next step; the referenced object remains separate from the name. |
| 15 | ] | Implements the next python statement in the example's data flow. |
| 17 | @transaction.atomic | Applies a decorator or framework annotation before the following definition is bound. |
| 18 | def apply(candidate, job): | Defines a function; its parameters form the explicit input boundary. |
| 19 | return Application.objects.get_or_create(candidate=candidate, job=job) | Returns the observable result to the caller and ends this invocation. |
Step-by-step execution
- Django loads settings, initializes the app registry, composes middleware, and registers URL patterns before accepting the request.
- The URL resolver selects a view; authentication, permission, form, or serializer code converts untrusted request data into validated Python values.
- The view or service constructs a lazy QuerySet or enters a transaction; SQL is generated, planned by PostgreSQL, executed, and mapped back into model or projection values.
- On success the transaction commits and the response is rendered or serialized; on failure it rolls back and Django's exception path produces the documented error contract.
- Middleware unwinds around the response, while tests assert status, body, durable rows, query count, permissions, and any on-commit asynchronous handoff.
Common mistakes and professional corrections
| Area | Common failure | Better engineering choice |
|---|---|---|
| Models & auth | Changing the user model after tables and foreign keys exist is a complex data migration, not a routine settings edit. | Create the custom user model before the first production migration even if it initially adds no fields, and keep authentication identity separate from profile details when appropriate. |
| API endpoints | Filtering ownership only in the UI or building unbounded plain substring search can expose updates and force slow scans. | Keep write authorization independent from public search visibility and measure ranking/plan behavior on representative listings. |
| Async & background | Calling the task before commit can send a confirmation for rolled-back data; retrying without a stable message key can send duplicates. | Use Celery to keep provider latency and retries outside the web request while retaining delivery evidence. |
| Infrastructure | depends_on is not a distributed readiness protocol. | Keep production-like topology but separate development overrides and secrets. |
Interview and review notes
- Define the central abstraction without naming a library function.
- Trace one request, call, query, message, render, or state transition from input to observable result.
- Compare two alternatives from this chapter by guarantee, cost, and failure behavior.
- Explain the most likely production bug and the test or metric that reveals it.
- State what remains authoritative after process loss, retry, reconnect, or deployment.
Practice set
Easy
- Define every bold term in the concept tables in one precise sentence.
- Reproduce the focused examples and annotate the value or state after each important line.
- Explain the chapter progression diagram aloud in two minutes.
Medium
- Replace one convenient default with an explicit policy for validation, timeout, ordering, pagination, cleanup, or error handling.
- Write a negative test for each topic group.
- Compare the measured behavior before and after one justified change.
Hard
- Combine all topic groups into one thin vertical slice.
- Inject a realistic failure at the most important external boundary and prove recovery.
- Write a one-page design note covering ownership, trade-offs, security, observability, and rollback.
Chapter submission
Submit:
- source code or reproducible commands;
- automated tests plus one deliberately failing-before-fix test;
- captured output, query plan, trace, screenshot, or metric;
- a 300–500 word explanation of the execution flow and one rejected alternative;
- a short README with setup, versions, limitations, and cleanup steps.
- Continue with the Job Board Platform project workshop.
Self-review rubric
| Dimension | Beginning | Competent | Professional |
|---|---|---|---|
| Explanation | Names APIs | Explains behavior | Connects guarantees, internals, and trade-offs |
| Implementation | Happy path only | Validated and tested | Clear ownership, failure recovery, and cleanup |
| Evidence | Manual claim | Repeatable output | Tests plus meaningful measurement or inspection |
| Communication | Steps missing | Reproducible README | Decisions, limits, and alternatives are explicit |
Roadmap coverage checklist
- To do: Models & auth: Custom AbstractUser
- To do: Models & auth: Company/JobListing/Application/Notification models
- To do: Models & auth: JWT auth integration
- To do: API endpoints: Jobs CRUD (employer) + PostgreSQL FTS search
- To do: API endpoints: Applications: apply/list/status update
- To do: API endpoints: cursor pagination + rate limiting (5 apps/hr)
- To do: Async & background: Celery: confirmation email + daily digest
- To do: Async & background: Channels: real-time status updates
- To do: Async & background: Beat: expire_old_listings command
- To do: Infrastructure: Docker Compose: django/postgres/redis/celery/beat
- To do: Infrastructure: 40 test cases
Quick revision
- Models & auth: connect the surface API to its guarantee, lifecycle, failure boundary, and evidence.
- API endpoints: connect the surface API to its guarantee, lifecycle, failure boundary, and evidence.
- Async & background: connect the surface API to its guarantee, lifecycle, failure boundary, and evidence.
- Infrastructure: connect the surface API to its guarantee, lifecycle, failure boundary, and evidence.
- Re-read the worked-example execution trace instead of memorizing isolated syntax.
- If you cannot name the owner of state and cleanup, the design is not yet complete.
Mastery check
How well can you recall this?
Finished this lesson?