added delta time and timer class