added first functional version for SVG