Update quad.c