graphic code samples