working template class and toy data element