Created a MyFuncs class and used register_instance to register all
functions at once.