Lab 8 for CS315