first version of the ntp class