Added first version which compiles under Visual Studio 2012