added single threaded moving window example-a