Coding the graphics components