added (Stole) graphics.c and graphics.h