template parsing;template class building