working Windows version with example