Finalized pattern matching assignment