Updated with template class example