Working on the sliding windows codes