first template class for java fx