working on sliding_window example