Added static function option

Based on today's discussions, I have added another option, namely using functions in the global namespace rather than object instantiation.