. . "BTW, you do not need OOP to solve this problem; all you need is a function." . .