add graphics interface now start write the grahpics layer code.