an OOP way to parse an $argv array