moved SVG sample code and added main.cpp from tutorial