Add an alternative to the class-based generic version, for illustrative purposes.