Thread and Graphics examples