added timer class