Separated out Unix/Windows versions. Unix version now working
Assignment done. Windows implementation remains incomplete