Added classes to handle timestamps and to generate sliding window