simple class using Function metaclass