Using a mixin class and template method.