added client code as VS2013