java practice and SVG generation