homework2: make it compiler under vs2008