move class methods into module.