added deltatime class