Added simple template class
Corrected method visibility and added exists() method