quasi-wrote draw.c & matrix.c