Added Graphics2D code snippet