Completed quiz8.c