use function as an alias to a class