Math Class Template have to be made functional