clean code for windows. this is the first runnable version