Made a simple template class you can use