renders shapes using a java app and some C code