Windows version of homework 2