Function.win() finished and tested