working solution for lines, poly and circles - added JAD example