Concept Flow - Companion vs top-level functions decision
Start
Need function?
Is function related to class state?
Yes→Use companion object function
No
Use top-level function
Function called
Execution
End
Decide if a function belongs inside a companion object (related to class) or as a top-level function (independent). Then call and execute it.