New file to compute sliding window