lab5a.c