How we use templates to pack stuff