Solutions in VS 2012 for simple (and a few more complex) problems