A new and useful template technique: “traits”