Update lab8.c

This implementation is better than the first one I proposed