Fixe some style.
Use module_function instead of extending self