lab8a.c