class to functions w/ decorators