Example of practical work on drawing graphics primitives in Java