added template class to build ordered list instead